/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.psdk.remote;

import android.app.Service;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.IBinder;
import com.qihoo.psdk.util.h;

public class QRemoteService extends Service {
    public static int a = 0;
    public static int b = 0;
    private QRemoteNetwork c = null;

    public void onCreate() {
        super.onCreate();
        h.a("QRemoteService", "onCreate..., createCount: " + (++a));
        e.a(this);
        IntentFilter localIntentFilter = new IntentFilter();
        localIntentFilter.addAction("android.net.conn.CONNECTIVITY_CHANGE");
        if (this.c == null)
            this.c = new QRemoteNetwork();
        registerReceiver(this.c, localIntentFilter);
    }

    public IBinder onBind(Intent paramIntent) {
        h.a("QRemoteService", "onBind..., bindCount: " + (++b));
        return new l(this);
    }

    public void onDestroy() {
        h.a("QRemoteService", "onDestory");
        super.onDestroy();
        if (this.c == null)
            return;
        unregisterReceiver(this.c);
    }

    public boolean onUnbind(Intent paramIntent) {
        h.a("QRemoteService", "onUnbind...");
        return super.onUnbind(paramIntent);
    }

    public void onRebind(Intent paramIntent) {
        h.a("QRemoteService", "onRebind...");
        super.onRebind(paramIntent);
    }
}